{{ $path := . }}
{{ $parts := split $path "/" }}
{{ $lastPart := last 1 $parts }}
{{ return (index $lastPart 0) }}